From 668af8875a6ad156bf176d91aaa3e366d031f03c Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Thu, 6 Aug 2026 13:30:12 +0200 Subject: [PATCH] hppa-do-not-use-fstack-clash-protection =================================================================== Gbp-Pq: Name hppa-do-not-use-fstack-clash-protection.patch --- cmake/compilers/GNU.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake index 79bae43..5fb8e5a 100644 --- a/cmake/compilers/GNU.cmake +++ b/cmake/compilers/GNU.cmake @@ -84,7 +84,9 @@ endif() if (NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL Intel) # gcc 6.0 and later have -flifetime-dse option that controls elimination of stores done outside the object lifetime set(TBB_DSE_FLAG $<$>:-flifetime-dse=1>) - set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) + if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(hppa|parisc)") + set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) + endif() # Suppress GCC 12.x-15.x warning here that to_wait_node(n)->my_is_in_list might have size 0 set(TBB_COMMON_LINK_FLAGS ${TBB_COMMON_LINK_FLAGS} $<$>,$>:-Wno-stringop-overflow>) @@ -111,7 +113,9 @@ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-secur if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)" AND NOT EMSCRIPTEN) set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$>:-fcf-protection=full>) endif () -set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) +if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(hppa|parisc)") + set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$>:-fstack-clash-protection>) +endif() # -z switch is not supported on MacOS and MinGW if (NOT APPLE AND NOT MINGW) -- 2.30.2